/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Commons.WebServiceClient;


import Commons.Logging.Log;
import Commons.Logging.Logger;
import globalmonitor.InviaNotificaWS;
import globalmonitor.InviaNotificaWSService;
import javax.xml.ws.WebServiceRef;



/**
 *
 * @author drag0nman
 * 
 */


public class RegWebService  implements Runnable{
@WebServiceRef(wsdlLocation="http://151.97.152.116:8080/GlobalMonitor/InviaNotificaWSService?wsdl")
InviaNotificaWSService service;

    private String tipoEntita;
    private Logger log;

public RegWebService(String tipoEntita, Logger log)
{
    service = new InviaNotificaWSService();
    WebServiceClient cws = null;
    this.tipoEntita = tipoEntita;
    this.log=log;

   
     
    }
    public void run() {
        
      InviaNotificaWS p = service.getInviaNotificaWSPort();
      int i=  p.registrazione(tipoEntita);
      log.setPosizione(i);
     
      
    }

   

}


